<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>

<link rel="stylesheet" href="homepageAndDetail/css/comment.css">
<link rel="stylesheet" type="text/css" href="homepageAndDetail/css/dialog.css">
<script type="text/javascript" src="homepageAndDetail/js/dialog.js"></script>
<script type="text/javascript" src="homepageAndDetail/js/jquery-2.1.1.js"></script>
<script type="text/javascript" src="homepageAndDetail/js/dialog-plus.js"></script>
<title>评论页</title>

<style type="text/css">
	.showcontent{
		
		width:300px;
		float:left;
		text-align:center;
		word-break: break-all;
		word-wrap: break-word;
	}
	.showtime{
	
		width:200px;
		float:left;
		text-align:center;
		word-break: break-all;
		word-wrap: break-word;
	}
	.showseller{
	
		width:100px;
		float:left;
		text-align:center;
		word-break: break-all;
		word-wrap: break-word;
	}
	
</style>
</head>
<body align="center">

<jsp:include page="topbar.jsp"></jsp:include> 
 <div align="center">
 <table align="center">
 	<tr>
 		<td>
 			<ul> 
	<li class="feed" style="margin: 0 auto;padding-top:30px;"> 
 		<!--第一层循环start--> 
		<div class="box1"> 
 		<!--第二层循环start-->
		<div class="box2"> 
			
			<div class="line">
				<div class="showcontent" style="font-size:20px;color:skyblue;font-weight:bold;">评价内容</div>
				<div class="showtime" style="font-size:20px;color:skyblue;font-weight:bold;">评价时间</div>
				<div class="showseller" style="font-size:20px;color:skyblue;font-weight:bold;">评价买家</div>
			</div>
			<p class="line"></p>
			
			
			<c:forEach items="${pagedata.goodsList}" var="view" varStatus="c">
				<p class="line"></p>
				<div class="showcontent">${view.commentContent }</div>
				<div class="showtime">${view.commentTime }</div>
				<div class="showseller">${view.userbuyName }</div>
				<p class="line"></p>
			</c:forEach>
			
		 <!--第二层循环end-->
	  </div>
	  	
	  <div class="clear"> </div>
	  
	</li>
	
 </ul> 
 		</td>
 	</tr>
 	
 	<tr align="center">
 		<td>
 			<nav style="text-align:center;display:inline-block;" id="pageShow">
		<div>
			<a href="SearchComment?currentPage=1&id=${pagedata.currentGoodsid}">首页</a>
			<a href="SearchComment?id=${pagedata.currentGoodsid }&currentPage=${pagedata.currentPage>1?(pagedata.currentPage-1):(pagedata.currentPage) }">上一页</a>
		
		
			<a href="SearchComment?id=${pagedata.currentGoodsid }&currentPage=${pagedata.currentPage<pagedata.totalPage?(pagedata.currentPage+1):(pagedata.totalPage) }">下一页</a>
			<a href="SearchComment?id=${pagedata.currentGoodsid }&currentPage=${pagedata.totalPage }">尾页</a>
		
			第<span style="color:red;font-weight:600">${pagedata.currentPage }</span>页
			共<span style="color:red;font-weight:600">${pagedata.totalPage }</span>页
		</div>
	</nav> 
 		</td>
 	</tr>
 </table>
 </div>
 </body> 
 
</html>